<template>
  <div class="header">
    <div class="miantop">
      <div class="title">管理系统</div>
      <div>{{ name }}</div>
    </div>
  </div>
</template>
<script>
import { getToken } from '@/utils/setToken.js';
export default {
  data() {
    return {
      name: '',
    };
  },
  created() {
    this.name = getToken('username');
  },
};
</script>
<style lang="scss" scoped>
.miantop {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
  line-height: 60px;
  background-color: #2578B5;
  color: #fff;
    .title{
    font-size: 20px;

    }
}
</style>
